//
//  DYZNavigationController.m
//  DYZCars
//
//  Created by 白白龙腾 on 16/8/19.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZNavigationController.h"
#import "UIColor+Addition.h"

@interface DYZNavigationController ()

@end

@implementation DYZNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.navigationBar setBarTintColor:[UIColor colorWithHex:0x0073dd]];
    
    [self.navigationBar setTintColor:[UIColor whiteColor]];
    
    //设置表体的颜色为白色
    self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
    
}

- (UIStatusBarStyle)preferredStatusBarStyle{
    
    return UIStatusBarStyleLightContent;
    
}

-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    if (self.viewControllers.count > 0) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
